﻿using RpcCentral.Model;
using RpcCentral.Model.DB;

namespace RpcCentral.DAL
{
    public interface IRemoteServerDAL
    {
        int GetVerNum (long id);
        long Add (RemoteServerConfig add);
        long FindServiceId (long containerId);
        long FindServiceId (long systemType, string mac, int serverIndex);
        RemoteServerModel GetRemoteServer (long id);
        BasicServer[] GetRemoteServerConfig (long[] ids);
        long[] LoadServer (int serverIndex);
        bool ServerOffline (long serverId, int serverIndex);
        bool ServerOnline (long serverId, int serverIndex);
        void SetConIp (long serverId, string conIp);
        void SetApiVer (long serverId, int ver);
        void SetHoldRpcMerId (long serverId, long rpcMerId);
    }
}